<template>
  <div id="app">
    <nav>
      <router-link to="/">首页</router-link>
      <router-link to="/energy">能源管理</router-link>
      <router-link to="/devices">设备管理</router-link>
      <router-link to="/reports">报表分析</router-link>
    </nav>
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
/* 添加全局样式 */
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin: 20px;
}

nav {
  margin-bottom: 30px;
}

nav a {
  margin-right: 15px;
  text-decoration: none;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
  font-weight: bold;
}
</style>
